package com.yitong.equipment.network

import androidx.lifecycle.MutableLiveData
import com.yitong.equipment.entity.base.BaseReq
import com.yitong.equipment.entity.base.BaseRes
import com.yitong.equipment.entity.other.InterfaceConfigBean
import com.yitong.equipment.entity.res.HomeDataRes
import io.reactivex.Observable
import kotlinx.coroutines.*
import okhttp3.ResponseBody
import kotlin.system.measureTimeMillis
import com.yitong.equipment.database.entity.User
import com.yitong.equipment.entity.res.UserInfo
import retrofit2.http.*
import retrofit2.http.FieldMap

import retrofit2.http.POST

import retrofit2.http.FormUrlEncoded
import kotlin.coroutines.Continuation


interface APIService {

    //获取APP基本配置
    @GET
    fun getAppConfig(@Url url: String): Observable<InterfaceConfigBean>

    //获取首页banner
    @POST("ai/gw/course/getOrderCourseListV2")
    fun getHomeData(@Body baseReq: BaseReq?): Observable<BaseRes<HomeDataRes>>

    /**
     * 协程请求  协程+retrofit
     */
    @POST("ai/gw/course/getOrderCourseListV2")
    suspend fun getHomeData1(@Body baseReq: BaseReq?): BaseRes<HomeDataRes>
}